package com.cn.lp.jpa.cq.test.domain;


import com.cn.lp.jpa.cq.test.TestSaveService;

/**
 * Created by qirong on 2019/8/25.
 */
public class CPGMGainWinningNumScheduleTask1 extends AbstractMultiTimesScheduleTask<CPGMGainWinningNumTrigger> {

    private TestSaveService testSaveService;

    public CPGMGainWinningNumScheduleTask1(String name, CPGMGainWinningNumTrigger trigger,
        TestSaveService testSaveService) {
        super(name, trigger);
        this.testSaveService = testSaveService;
    }

    @Override
    public boolean isExecEveryTimes() {
        return false;
    }

    @Override
    protected void doExecOnce(long startTime, int runTimes, long executeTime) {
        try {
            testSaveService.test1();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
